package com.JinYuan.pojo;

import java.util.*;

/**
 * @author 金园
 * @create 2022/5/3
 * @Description
 * @className User
 * @packageName com.jinyuan.pojo
 */
public class User {

    public void init(){
        System.out.println("对象创建了");
    }

    public void destroy(){
        System.out.println("对象销毁了");
    }

    private int id;
    private String username;
    private String gender;
    private int age;
    private Date birthday;
    private IdCard idCard;
    private String[] arr;
    private List<String> list;
    private Set<String> set;
    private Map<String,String> map;
    private Properties prop;

    public User(int id, String username, String gender, int age, Date birthday, IdCard idCard, String[] arr, List<String> list, Set<String> set, Map<String, String> map, Properties prop) {
        this.id = id;
        this.username = username;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.idCard = idCard;
        this.arr = arr;
        this.list = list;
        this.set = set;
        this.map = map;
        this.prop = prop;
    }

/*    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", idCard=" + idCard +
                ", arr=" + Arrays.toString(arr) +
                ", list=" + list +
                ", set=" + set +
                ", map=" + map +
                ", prop=" + prop +
                '}';
    }*/

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public IdCard getIdCard() {
        return idCard;
    }

    public void setIdCard(IdCard idCard) {
        this.idCard = idCard;
    }

    public String[] getArr() {
        return arr;
    }

    public void setArr(String[] arr) {
        this.arr = arr;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProp() {
        return prop;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }

    public User() {
    }
}
